import { post } from '@/utils';
import { apiPrefix } from './prefix';

// 登录接口
export const postLogin = (params: Object) => post(`${apiPrefix}/user/login`, params);

// 注册接口
export const postRegistry = (params: Object) => post(`${apiPrefix}/user/registry`, params);

// 所有用户列表接口接口
export const getUserList = () => post(`${apiPrefix}/user/list`, {});

// 所有用户列表接口接口
export const postDelete = () => post(`${apiPrefix}/user/delete`, {});

// 更新用户信息接口
export const postUserModify = (params: Object) => post(`${apiPrefix}/user/modify`, params);

// 修改密码接口
export const postUpdatePsw = (params: Object) => post(`${apiPrefix}/user/updatePassword`, params);
